{include file="./headStart.tpl"}
<script type="text/javascript">
function deletechecked()
{
	var answer = confirm("Delete Selected Recored ?")
	if (answer)
	{
	  document.messages.submit();
	}
	return false;
}
$(document).ready(function() {
  $("#slotName").focus();
});  
</script>
{include file="./headEnd.tpl"}
<form name="form" action="{$smarty.server.PHP_SELF}" id="form" method="post">
<input type="hidden" name="timeSlotId" value="{$timeSlotId}" />  
<table align="center" border="1" cellpadding="2" cellspacing="1" >
<tr>
  <td align="center" class="table1" colspan="2">Time Slot Entry</td>
</tr>
<tr>
  <td align="left" class="table2">Slot Name:</td>
  <td class="table2"><input type="text" name="slotName" id="slotName" value="{$slotName}" required title=" Please Enter Slot Name"></td>
<tr>
<tr>  
  <td align="left" class="table2" >From Time : </td>
  <td NOWRAP class="table2">
    {html_select_time use_24_hours=false prefix="fromTime" time="$fromTime" display_meridian=true}
  </td>
</tr>
<tr>
  <td align="left" class="table2" >To Time : </td>
  <td NOWRAP class="table2">
    {html_select_time use_24_hours=false prefix="toTime" time="$toTime" display_meridian=true}
  </td>
</tr>
<tr>
  <td class="table2" align="center" colspan="2"><input class="button" type="submit" name="insertBtn" value="Submit" class="insertBtn" /></td>
</tr>
</table>
</form> 

<form action="{$smarty.server.PHP_SELF}" name='slotTime' method='POST'>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="4"><font style="font-size: 16px"><b> Time </b></font></td>
</tr>
<tr>
  <td  class="table1" align='center' ><B>&nbsp;</td>
  {*<td  class="table1" align='center' ><B>&nbsp;</td>*}
	<td  class="table1" align='center' ><B>S.R.No</td>
	<td  class="table1" align='center' ><B>Slot Name</td>
	<td  class="table1" align='center' ><B>From Time</td>
	<td  class="table1" align='center' ><B>To Time</td>
</tr>
{section name="sec1" loop=$timeSlotDetailArray}
<tr>
  <td class="table3" align="center">
    <a href="timeSlot.php?timeSlotId={$timeSlotDetailArray[sec1].timeSlotId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  </td>
  {*<td class="table3" align="center">  
	  <a href="timeSlotDelete.php?timeSlotId={$timeSlotDetailArray[sec1].timeSlotId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>
  </td>*}
  <td class="table3" align="left">{$smarty.section.sec1.rownum}</td>
  <td class="table3" align="left"> {$timeSlotDetailArray[sec1].slotName}</td>
  <td class="table3" align="left"> {$timeSlotDetailArray[sec1].fromTime}</td>
  <td class="table3" align="left"> {$timeSlotDetailArray[sec1].toTime}</td>
</tr>
{/section}
</table>
</form>
{include file="footer.tpl"}